function checkSub(){
	var obj=document.getElementById("lawyer_id");
	if(obj.options[obj.selectedIndex].value==""){
		alert("请选择律师");
		document.getElementById('lawyer_id').focus();
		return false;
	}

	if(document.getElementById('commission_fees').value==''){
		alert("请填写提成费");
		document.getElementById('commission_fees').focus();
		return false;
	}
	obj=document.getElementById("cur_state");
	if(obj.options[obj.selectedIndex].value==""){
		alert("请选择状态");
		document.getElementById('cur_state').focus();
		return false;
	}
	obj=document.getElementById("service_id");
	if(obj.options[obj.selectedIndex].value==""){
	alert("请选择客服");
		document.getElementById('service_id').focus();
		return false;
	}
	
	
	

	document.addForm.submit();
}

function search(){
	//TODO
	document.indexForm.submit();
}
function deleteOneInfo(bpm_id){
	if(window.confirm('确认删除吗？')){
		document.getElementById("bpm_id").value=bpm_id;
		var case_state= document.getElementById("case_state").value;
		if(case_state!="1"){
			case_state=""+(parseInt(case_state)-1);
		}
		document.getElementById("case_state").value=case_state;
		document.addForm.submit();
 	}
}

